package org.apache.dolphinscheduler.api.service;

import org.apache.dolphinscheduler.api.utils.Result;
import org.apache.dolphinscheduler.dao.entity.User;

import java.util.Map;

public interface OverviewService {
    Integer getProcessDefinitionNum(User loginUser);

    Integer getFileNum(User loginUser);

    Integer getUDFNum(User loginUser);

    Integer getDatasourceNum(User loginUser);

    Result queryProcessInstanceLatest10(User loginUser, Integer pageNo, Integer pageSize);

    Map<String, Object> queryHomeStatistics(User loginUser);

    Map<String, Object> queryProcessScene(User loginUser, String startDate, String endDate);
}
